//
// Created by Huiyi on 2021/4/30.
//
#include "module_XExpand.h"

//程序_延时
void X_Program_Sleep(int time){
    Sleep(time);
}


//程序_是否64位
bool X_Program_If64() {
    char* test = nullptr;
    char* start = (char*)&test;
    char* end = (char*)(&test + 1);
    if (4 == (end - start))
    {
        return false;
    }
    if (8 == (end - start))
    {
        return true;
    }
    return false;
}

//程序_生成UUID
CXTextA X_Program_CreateGUID (bool mark){
    sole::uuid u0 = sole::uuid0();
    string stru0 = u0.str();
    if(!mark){
        stru0.erase(std::remove(stru0.begin(), stru0.end(), '-'), stru0.end());
    }
    return stru0;
}
